/**
 * FlightInfoDbTestSuite.java
 * Jan 15, 2010
 */
package com.dlplay.flightinfo.test;

import java.util.logging.Logger;

import org.junit.Test;

import com.dlplay.flightinfo.source.FlightInfoDsUtility;
import com.dlplay.flightinfo.core.FlightSystem;
import com.dlplay.flightinfo.data.AirFlightCode;
import com.dlplay.flightinfo.data.AirlineCode;
import com.dlplay.flightinfo.data.RealTimeFlightInfo;


/**
 * @author zhang yu
 *
 */
public class DataSourceTestSuite extends AbstractGaeTestSuite {
	
	@Test
	public void testExample() {
		//TODO storeUser
		log.info("testDataSource");
        RealTimeFlightInfo f = FlightSystem.getFlightManager().getRealTimeFlightInfo(new AirFlightCode(AirlineCode.CA, 1387));
		if (f == null)
		{
			log.severe("Flight CA1387 not found!");
		}
		else
			log.severe("Flight CA1387 found! " +f);
//		for (int i=0; i< FlightInfoDsUtility.locationTable.length; i++)
//		{
//			log.info(FlightInfoDsUtility.locationTable[i][3]);
//		}
//        Flight f = FlightSystem.getFlightManager().getFlight("CA1856");
//		if (f == null)
//		{
//			log.severe("Flight CA1585 not found!");
//		}
//		log.severe("Flight CA1585 found!");
	}

}
